home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
GAL ƒ
/
GAL examples
/
switch em
< prev
next >
Wrap
Text File
|
1994-07-11
|
283b
|
15 lines
; switches the contents of two memory locations
; the change should be visable
; running a second time reverses again
begin_code
copy first=>reg0
copy second=>reg1
copy reg0=>second
copy reg1=>first
halt
end_code
begin_data
first constant -1
second constant 1
end_data
end